package com.cwd.arm.domain.repository;

import com.cwd.arm.domain.entity.ReceiveRecordEntity;
import com.cwd.arm.domain.entity.TaxEntity;

/**
 * Description:开票信息
 * Created on 2021年11月16日
 *
 * @author yan
 */
public interface TaxRepository {

    Long save(TaxEntity taxEntity);

    void update(TaxEntity taxEntity);

    void del(Long id);

    void addRecord(TaxEntity taxEntity, ReceiveRecordEntity receiveRecordEntity);

    void updateRecord(TaxEntity taxEntity, ReceiveRecordEntity oldReceiveRecordEntity, ReceiveRecordEntity newReceiveRecordEntity);

    void delRecord(TaxEntity taxEntity, ReceiveRecordEntity receiveRecordEntity);

    void updateCaseChangeReceiveNode(TaxEntity taxEntity);

    TaxEntity buildTaxEntity(Long id);
}


